package com.alibaba.sdk.model.output;

import com.alibaba.sdk.model.dto.UserDTO;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * 用户列表查询返回结果封装类
 *
 * @ writer Shawn(Shawn_0217@163.com)
 * @ date & time 2021/4/26 23:36
 * @ company alibaba
 */
@ApiModel(description = "用户列表查询返回结果封装类")
@ToString(callSuper = true)
@NoArgsConstructor
@Data
public class UserListResponse extends PageResponse<UserDTO> {

    public UserListResponse(List<UserDTO> userDTOList, Long totalNum, long totalPage) {
        setDataList(userDTOList);
        setTotalNum(totalNum);
        setTotalPage(totalPage);
    }

    private static final long serialVersionUID = 8909091422939577023L;
}
